package com.eidos.blogs.openapi.dto.secKill;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author ： Eidos
 * @date ：Created in 2021/1/11
 * @description：
 * @modified By：
 * @version: 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class GenerateRedEnvelopeDto implements Serializable {

    @ApiModelProperty(value = "红包ID", required = true)
    @NotNull
    private Long redEnvelopeId;

    @ApiModelProperty(value = "用户ID", required = true)
    @NotNull
    private Long userId;

    @ApiModelProperty(value = "主题", required = true)
    @NotNull
    private String title;

    @ApiModelProperty(value = "红包类型:0-普通红包，1-节日红包", required = true)
    @NotNull
    private Integer type;

    @ApiModelProperty(value = "红包个数", required = true)
    @NotNull
    private Integer number;

    @ApiModelProperty(value = "红包金额，单位为分", required = true)
    @NotNull
    private Long amount;

    @ApiModelProperty(value = "是否全中：0-普通，1-全中，2-全不中", required = true)
    @NotNull
    private Integer openHit;

    @ApiModelProperty(value = "全不中数字列表", required = true)
    @NotNull
    private List<String> hitNums;


}
